package com.vegetable.modules.entity.outbound.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 销售订货
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SalesOrder对象", description="销售订货")
public class SalesOrderImport implements Serializable {

    private static final long serialVersionUID = 1L;

//    @Excel(name = "客户名称", width = 20)
    private String customerName;

    @Excel(name = "商品编码", width = 15)
    private String commodityCode;

    @Excel(name = "标重（市斤）")
    private BigDecimal standard;

    @Excel(name = "品种", width = 20)
    private String commodityName;

    @Excel(name = "规格")
    private String specsName;


    @Excel(name = "件数")
    private Integer startNumber;

    @Excel(name = "走货数量")
    private Integer outNumber;

    @Excel(name = "备注", width = 50)
    private String remark;


    @Excel(name = "毛重")
    private BigDecimal unitGrossWeight = BigDecimal.ZERO;

    @Excel(name = "体积")
    private BigDecimal unitVolume = BigDecimal.ZERO;

    @Excel(name = "重量")
    private BigDecimal startWeight;


    @Excel(name = "毛重合计")
    private BigDecimal grossWeight;

    @Excel(name = "体积合计")
    private BigDecimal volume;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;

}
